package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Elder;
import com.zzyl.nursing.domain.NursingTask;
import com.zzyl.nursing.dto.CancelNursingTaskDto;
import com.zzyl.nursing.dto.ExecuteNursingTaskDto;
import com.zzyl.nursing.dto.NursingTaskPageDto;
import com.zzyl.nursing.vo.NursingTaskVo;

import java.util.List;

/**
 * 护理任务Service接口
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
public interface INursingTaskService extends IService<NursingTask>
{
    /**
     * 查询护理任务
     * 
     * @param id 护理任务主键
     * @return 护理任务
     */
    public NursingTask selectNursingTaskById(Long id);

    /**
     * 查询护理任务列表
     * 
     * @param nursingTask 护理任务
     * @return 护理任务集合
     */
    public List<NursingTaskVo> selectNursingTaskList(NursingTask nursingTask);

    /**
     * 新增护理任务
     * 
     * @param nursingTask 护理任务
     * @return 结果
     */
    public int insertNursingTask(NursingTask nursingTask);

    /**
     * 修改护理任务
     * 
     * @param nursingTask 护理任务
     * @return 结果
     */
    public int updateNursingTask(NursingTask nursingTask);

    /**
     * 批量删除护理任务
     * 
     * @param ids 需要删除的护理任务主键集合
     * @return 结果
     */
    public int deleteNursingTaskByIds(Long[] ids);

    /**
     * 删除护理任务信息
     * 
     * @param id 护理任务主键
     * @return 结果
     */
    public int deleteNursingTaskById(Long id);

    /**
     * 获取护理任务详细信息
     * @param id
     * @return
     */
    NursingTaskVo findNursingTaskById(Long id);

    /**
     * 取消护理任务
     * @param dto
     * @return
     */
    boolean cancelNursingTask(CancelNursingTaskDto dto);

    /**
     * 执行护理任务
     * @param executeNursingTaskDto
     * @return
     */
    boolean executeNursingTask(ExecuteNursingTaskDto executeNursingTaskDto);

    /**
     * 任务改期
     * @param executeNursingTaskDto
     * @return
     */
    boolean updateTime(ExecuteNursingTaskDto executeNursingTaskDto);

    /**
     * 自动任务相关
     * 创建月任务
     * @param elder
     */
    void createMonthTask(Elder elder);

    /**
     * 分页查询
     * @param nursingTaskPageDto
     * @return
     */
    List<NursingTaskVo> findNursingTaskList(NursingTaskPageDto nursingTaskPageDto);
}
